package com.coffee.sku.api.sku.service;


import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.sku.api.sku.query.RegionalSkuQuery;
import com.coffee.sku.api.sku.req.SkuListReq;
import com.coffee.sku.api.sku.result.RegionalSkuResult;
import com.coffee.sku.api.sku.result.RegionalSkuSalesInformationResult;
import com.coffee.sku.api.sku.result.SkuListResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface RegionalSkuService {

    Page<SkuListResult> getPager(SkuListReq param, PagerInfo pr);

    void delete(Integer id);

    void deleteBySkuId(Integer skuId);

    void addOrUpdate(RegionalSkuResult result) throws BusinessException;

    Map<Integer, RegionalSkuResult> getItemMap(Set<Integer> idSet);

    void addBySkuIds(Integer skuId,String isMembersExclusive, List<RegionalSkuSalesInformationResult> regionalSkuSalesInformationResults) throws BusinessException;

    void updateBySkuIds(Integer skuId,String isMembersExclusive, List<RegionalSkuSalesInformationResult> regionalSkuSalesInformationResults) throws BusinessException;

    SkuListResult getSkuListResult(Integer skuId);


}